define(function (require, exports, module) {

    var Time = require('/plugins/extend/Time');


    // 通过 require 引入依赖
    //require("/plugins/jquery.knob/jquery.knob.min");
    $.ajax({
        url: "/app/user/allRepayPlan.html",
        type: "get",
        dataType: "json",
        success: function (data) {
            var tpl = require('/mobile/tpl/borrow/repayList.tpl');//载入tpl模板
            var template = Handlebars.compile(tpl);
            var html = template(data);
            $("#repayList").html(html);
            var template = '<div><strong class="time-item day_show" >{dnn}</strong> <strong class="time_n">days</strong></div> <div><strong class="time-item hour_show" ><s id="h"></s>{hnn}</strong> <strong class="time_n">hours</strong></div><div><strong class="time-item minute_show" ><s></s>{mnn}</strong> <strong class="time_n"><!--{sn}-->min</strong></div>';
            Time.countDown($('.p_time'), 100, template);


        }
    })


    // 通过 exports 对外提供接口
    //exports.doSomething = ...

    // 或者通过 module.exports 提供整个接口
    //module.exports = ...

});